package designerMode.adapter.classMode;

import designerMode.adapter.normal.User;
import designerMode.adapter.normal.UserSevice;

public class UserAdapter extends WxUser implements UserSevice {
    @Override
    public User getUser() {

        WxUser wxUser = getWxUser();
        User user = new User();
        user.setUername(wxUser.wxName);
        user.setPassword(wxUser.wxPassword);
        return user;
    }

    private WxUser getWxUser() {
        WxUser wxUser = new WxUser();
        wxUser.setWxName("wx");
        wxUser.setWxPassword("mima");
        return wxUser;
    }
}
